package org.wuzhou.lvyou.map;

import android.content.Context;
import android.location.Location;
import android.widget.Toast;

public class JavascriptInterface {
    Context mContext;
    private Location mostRecentLocation;
    /** Instantiate the interface and set the context */
   public JavascriptInterface(Context c) {
        mContext = c;
    }

    /** Show a toast from the web page */
    public void showToast(String toast) {
        Toast.makeText(mContext, toast, Toast.LENGTH_SHORT).show();
    }
    
    public double getLatitude(){
	      return mostRecentLocation.getLatitude();
	    } 
	    public double getLongitude(){
	      return mostRecentLocation.getLongitude();
	    }
}